<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0" width="800px">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>操作</td>
    </tr>
    <%--<jsp:useBean id="student" scope="request" type="java.util.List<com.itheima.domain.Student>"/>--%>
    <c:forEach items="${students}" var="stu">
        <tr>
            <td>${stu.id}</td>
            <td>${stu.name}</td>
            <td>${stu.age}</td>
            <td>
                <a href="DeleteServlet?id=${stu.id}" >删除</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="UpdateStudentServlet?id=${stu.id}" >修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="/add.jsp">添加</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>